<script>
import { nextTick } from "vue";

export default {
  data() {
    return {
      isRouterAlive: true,
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      nextTick(() => {
        this.isRouterAlive = true;
      });
    },
  },
  provide() {
    return {
      reload: this.reload,
    };
  },
};
</script>

<template>
  <my-breadcrumb />
  <router-view class="box" v-if="isRouterAlive" />
</template>

<style scoped></style>
